#include<Arkhelper.h>
using namespace std;
#ifndef CustomFunc
#define	CustomFunc
string itos(int Num_) {
	bool Flag_=0;
	if(Num_<0) Num_=-Num_,Flag_=1;
	string Result_="";
	do {
		Result_=Result_+(char)(Num_%10+'0');
		Num_/=10;
	} while(Num_);
	Result_+=Flag_?"-":"";
	reverse(Result_.begin(),Result_.end());
	return Result_;
}
int stoi(const char* _Str){
	int Res_=0;
	const int _Siz=strlen(_Str);
	for(int i=0;i<_Siz;i++)Res_=Res_*10+_Str[i]-'0';
	return Res_;
}
void Print_To_Log(const string _Content){
	time_t Now_Time;
	tm* _P;
	time(&Now_Time);
	_P=localtime(&Now_Time);
	const string _FileName="logs/"+itos(1900+_P->tm_year)+itos(_P->tm_mon+1)+itos(_P->tm_mday)+".log";
	ofstream fout(_FileName.c_str(),ios::app);
	fout<<_Content<<flush;
	fout.close();
}
unsigned _Bs = 233, _Sd = 1;
unsigned _Rnd(unsigned Mod) {
	_Sd *= _Bs; 
	_Sd <<= 11; 
	_Sd += _Bs;
	_Sd ^= rand();
	return _Sd % Mod;
}
#endif

